package com.cp.service;

import com.cp.entity.SEntity;
import org.apache.commons.io.FileUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

@Service
public class SService {
    Logger logger = LoggerFactory.getLogger(SService.class);
    public List<SEntity> readContent() {
        List<SEntity> list = new ArrayList<>();
        try {
            List<String> lines = FileUtils.readLines(new File(""), "UTF-8");
            for(String line : lines) {

            }
        } catch (Exception ex) {
            ex.printStackTrace();
        }
        return list;
    }


}
